//
//  Ugc_Receive_VC_WX.m
//  ZITHER
//
//  Created by weixin on 2018/9/26.
//  Copyright © 2018年 weixn. All rights reserved.
//

#import "Ugc_Receive_VC_WX.h"
#import "UGC_Release_Tbv_WX.h"

@interface Ugc_Receive_VC_WX ()
//@property (nonatomic,strong)QMUILabel * leb;
@property (nonatomic,strong)UGC_Release_Tbv_WX * tbv;
@end

@implementation Ugc_Receive_VC_WX

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setNav];
    [self setUI];
}

-(void)setNav{
    /* TODO: ================= 导航栏V4样式 =================*/
    [self.baseNavigationView NavigationBarStyle:1];
    self.baseNavigationView.leftButton1.hidden = YES;
    self.baseNavigationView.navViewStyle.title.text = @"收到的消息";
    [self.baseNavigationView setHiddenNav:NO VC:self];

//    [self.navigationController.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
//    self.navigationController.navigationBar.shadowImage = [UIImage new];
//    [self.baseNavigationView setBackgroundColor:[UIColor clearColor]];
//    self.baseNavigationView.bottomLineView.backgroundColor = [UIColor clearColor];
//    self.baseNavigationView.leftButton1.hidden = YES;
//
//    QMUIButton *btn = [[QMUIButton alloc]initWithFrame:CGRectMake(14,kStatusBarHeight+5,40,40)];
//    [btn setImage:[UIImage imageNamed:@"common_back"] forState:UIControlStateNormal];
//    [self.view addSubview:btn];
//    @weakify(self);
//
//    [[btn rac_signalForControlEvents:(UIControlEventTouchUpInside)] subscribeNext:^(__kindof UIControl * _Nullable x) {
//        @strongify(self);
//        [self.navigationController popViewControllerAnimated:YES];
//    }];
//
//    self.tabBarController.tabBar.hidden = YES;
//    [self.view addSubview:self.leb];

}





-(void)setUI{
    [self.view addSubview:self.tbv];
    [self.tbv mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(NaviHeight);
        make.left.equalTo(self.view).offset(0);
        make.right.equalTo(self.view).offset(0);
        make.bottom.mas_equalTo(0);
    }];
}

//-(QMUILabel *)leb{
//    if (!_leb) {
//        _leb = [[QMUILabel alloc]initWithFrame:CGRectMake(20,kStatusBarHeight+50, 200, 22)];
//        _leb.text = @"收到新的消息";
//        _leb.font = [UIFont fontWithName:@"Helvetica-Bold" size:22];
//        _leb.textColor = [UIColor blackColor];
//    }
//    return _leb;
//}

-(UGC_Release_Tbv_WX *)tbv{
    if (!_tbv) {
        _tbv = [[UGC_Release_Tbv_WX alloc]initWithFrame:CGRectMake(0, 0, 1, 1)];
    }
    return _tbv;
}
-(void)viewWillAppear:(BOOL)animated{
    
    self.tabBarController.tabBar.hidden = YES;
    
}
@end
